<?php
    header("Content-Type: text/html; charset=utf-8");
    
    include_once 'common/GlobalDefine.php';
    include_once 'class/WeChatCall.php';
    include_once 'class/menuStub.php';
    include_once 'class/Jssdk.php';

    
    //session_start();

    $whchatCall = new WeChatCall();
    
    if (!isset($_GET['echostr'])) {
        $whchatCall->responseMsg();
    }else{
        $whchatCall->checkSignature();
    }
    /*
    $jssdk = new JSSDK(GenenlerAppID, GenelerAppSecret);
    $access_token = $jssdk->getAccessToken();

    $url = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=".$access_token;
    $result = menuStub::https_request($url,$GLOBALS['MenuData']);
    var_dump($result);*/
?>